/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dieci.system;

import dieci.database.PersistentObject;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author Blanco
 */
public class Return implements PersistentObject {
    private Date returnDate;
    private long returnId;
    private Set<ReturnDetails> details = new HashSet<>();
    private Supplier supplier;
    private Order order;
    
    public Return()
    {
    }

    public Return(Supplier supp, Order order, Date returnDate)
    {
        this.supplier = supp;
        this.returnDate = returnDate;
        this.order = order;
    }
    
    public Return(Supplier supp, Order order, Date returnDate, Set<ReturnDetails> details)
    {
        this(supp, order, returnDate);
        this.details = details;
    }

    public Date getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(Date returnDate) {
        this.returnDate = returnDate;
    }

    public long getReturnId() {
        return returnId;
    }

    public void setReturnId(long returnId) {
        this.returnId = returnId;
    }

    public Set<ReturnDetails> getDetails() {
        return details;
    }

    public void setDetails(Set<ReturnDetails> details) {
        this.details = details;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public Order getOrder()
    {
        return order;
    }

    public void setOrder(Order order)
    {
        this.order = order;
    }
    
    
}
